package chap4.Task2;
public class Task2 {
    public static void main(String[] args) {
        double a = 8, b = 5, c = 0;
        for (int i = 2015; i <= 2025; i++) {
            a *= (1 + 0.2);
            b *= (1 + 0.14);
        }
        c = (a - b) / 10;
        c=(int)(c*10)/10.0;
        if (c > 10) {
            System.out.println("公司达到目标，2025年利润为" + c + "亿");
        } else {
            System.out.println("公司未达到目标，2025年纯利润为" + c + "亿");
        }
        System.out.println(a + " " + b);
    }
}
